package org.parademo.model;

import java.util.Date;

public class ProposalEntity extends Entity {

    private String title;
    private String description;
    private boolean internal;
    private Date votingStartDate;
    private Date votingEndDate;
    private TopicEntity topic;
    private UserEntity author;
    private ProposalStatusEntity status;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isInternal() {
        return internal;
    }

    public void setInternal(boolean internal) {
        this.internal = internal;
    }

    public UserEntity getAuthor() {
        return author;
    }

    public void setAuthor(UserEntity author) {
        this.author = author;
    }

    public Date getVotingStartDate() {
        return votingStartDate;
    }

    public void setVotingStartDate(Date votingStartDate) {
        this.votingStartDate = votingStartDate;
    }

    public Date getVotingEndDate() {
        return votingEndDate;
    }

    public void setVotingEndDate(Date votingEndDate) {
        this.votingEndDate = votingEndDate;
    }

    public ProposalStatusEntity getStatus() {
        return status;
    }

    public void setStatus(ProposalStatusEntity status) {
        this.status = status;
    }

    public TopicEntity getTopic() {
        return topic;
    }

    public void setTopic(TopicEntity topic) {
        this.topic = topic;
    }

    @Override
    public String toString() {
        return "ProposalEntity{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", internal=" + internal +
                ", topic=" + topic +
                ", author=" + author +
                ", status=" + status +
                ", votingStartDate=" + votingStartDate +
                ", votingEndDate=" + votingEndDate +
                '}';
    }
}
